<!doctype html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title>首页</title>
    <meta name="viewport" content="initial-scale=1, maximum-scale=1">
    <link rel="shortcut icon" href="/favicon.ico">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">

    <meta http-equiv="Expires" content="0">
    <meta http-equiv="Pragma" content="no-cache">
    <meta http-equiv="Cache-control" content="no-cache, must-revalidate">
    <meta http-equiv="Cache" content="no-cache">

    <link rel="stylesheet" href="/sui/css/sm.min.css">
    <link rel="stylesheet" href="/sui/css/sm-extend.min.css">

</head>
<body>

<div class="page-group">
    <!-- 单个page ,第一个.page默认被展示-->
    <div class="page">
        <!-- 标题栏 -->
       <!-- <header class="bar bar-nav">
            <h1 class="title">首页</h1>
        </header>-->

        <!-- 工具栏 -->
        <nav class="bar bar-tab">
            <a class="tab-item external active" href="#">
                <span class="icon icon-home"></span>
                <span class="tab-label">首页</span>
            </a>
            <a class="tab-item external" href="/user_center">
                <span class="icon icon-me"></span>
                <span class="tab-label">我的</span>
            </a>
        </nav>

        <!-- 这里是页面内容区 -->
        <div class="content">
            <div class="content-block">
                <!--banner图片开始-->
                <img src="/image/shualianzhifu.png" style="width: 100%;height: 8.5rem">
                <!--banner图片结束-->
<!--                我的...开始-->
                <div class="myselfBox">
                    <ul>
                        <li>
                            <a  class="face_a external"  href="/income/list">
                                <div class="myImg">
                                    <i class="iconfont icon-shouyi"></i>
                                </div>
                                <div class="myselfConter">
                                    <b>我的收益</b>
                                    <span>今日收益(元)</span>
                                    <span class="totalMoney"></span>
                                </div>
                            </a>
                        </li>
                        <li>
                            <a href="/withdrawManage/list" class="external">
                                <div class="myImg">
                                    <i class="iconfont icon-tixian"></i>
                                </div>
                                <div class="myselfConter">
                                    <b>提现记录</b>
                                    <span>余额(元)</span>
                                    <span class="balance"></span>
                                </div>
                            </a>
                        </li>
                        <li>
                            <a href="/enterprise_user/list" class="external">
                                <div class="myImg">
                                    <i class="iconfont icon-shangjia"></i>
                                </div>
                                <div class="myselfConter">
                                    <b>我的商家</b>
                                    <span>数量(个)</span>
                                    <span class="totalEnterprise"></span>
                                </div>
                            </a>
                        </li>
                        <li>
                            <a href="/agency_user/list" class="external">
                                <div class="myImg">
                                    <i class="iconfont icon-daili"></i>
                                </div>
                                <div class="myselfConter">
                                    <b>我的代理</b>
                                    <span>数量(个)</span>
                                    <span class="totalAgency"></span>
                                </div>
                            </a>
                        </li>
                    </ul>
                </div>

            </div>
        </div>
    </div>
    <link href="/css/agency/index.css" type="text/css" rel="stylesheet" />
    <!--    引用阿里图标库-->
    <link href="/css/iconfont.css" type="text/css" rel="stylesheet"/>

    <script type='text/javascript' src='/zepto/zepto.min.js' charset='utf-8'></script>
    <script type='text/javascript' src='/sui/js/sm.min.js' charset='utf-8'></script>
    <script type='text/javascript' src='/sui/js/sm-extend.min.js' charset='utf-8'></script>

    <script>
        $(document).ready(function () {
            $.post(
                "/withdrawManage/account",
                {},
                function (result) {
                    var count = (result.account)/100;
                    $(".balance").html(count);
                }
            )
            $.post("/user_satistics/total",{},function (result) {
                if(result.code==1){
                    var data = result.data;
                    $(".totalMoney").html(data.totalMoney);
                    $(".totalAgency").html(data.totalAgency);
                    $(".totalEnterprise").html(data.totalEnterprise);
                }
            });

        });
        $.init();
    </script>
</div>



</body>
</html>
